﻿using System;
using Newtonsoft.Json;
using System.ComponentModel.DataAnnotations.Schema;
using YiSha.Util;

namespace YiSha.Entity.QixingManage
{
    /// <summary>
    /// 创 建：admin
    /// 日 期：2025-03-01 17:00
    /// 描 述：实体类
    /// </summary>
    [Table("product_variants")]
    public class ProductVariantsEntity : BaseEntity
    {
        /// <summary>
        /// 商品id
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(StringJsonConverter))]
        public long? goods_id { get; set; }
        /// <summary>
        /// 颜色id
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(StringJsonConverter))]
        public long? color_id { get; set; }
        /// <summary>
        /// sku
        /// </summary>
        /// <returns></returns>
        public string sku { get; set; }
        /// <summary>
        /// 价格
        /// </summary>
        /// <returns></returns>
        public decimal? price { get; set; }
        /// <summary>
        /// 库存
        /// </summary>
        /// <returns></returns>
        public int? stock { get; set; }
    }
}
